package com.example.transport.protocol;

import com.example.transport.message.Request;
import com.example.transport.message.Response;

public interface Transport {

    /****
     *
     * 异步操作
     * @param request
     * @return
     * @throws Exception
     */
    public void asyncSend(Request request) throws Exception;


    /****
     *
     * 同步操作
     * @param request
     * @throws Exception
     */
    public Response syncSend(Request request) throws Exception;
}
